<h2>Show post</h2>

<ul>

  <li>
    <strong>Title:</strong>
    <%= @post.title %>
  </li>

  <li>
    <strong>Content:</strong>
    <%= @post.content %>
  </li>

  <li>
    <strong>Category:</strong>
    <%= Repo.get(Category, @post.category_id).name %>
  </li>

  <li>
    <strong>Comment count:</strong>
    <%= @post.comment_count %>
  </li>

</ul>

<%= link "Edit", to: user_post_path(@conn, :edit, @user, @post) %>
<%= link "Back", to: user_post_path(@conn, :index, @user) %>
